<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <script src="./vue.js"></script>
    <title>Document</title>
</head>
<body>
    <div id="app">
        <!--v-text-->
        <div v-text="vText"></div>
        <div v-text="0?'aa':'bb'+35"></div>
        <div v-text="ss"></div>
        <!--<div v-text="bb"></div>-->  <!--不支持methods -->
        <div v-html="vText"></div>
    </div>
</body>
<script>
    new Vue({
        el: "#app",
        data: {
            vText: "<div>the vtext</div>",
        },
        computed: {
            ss(){
                return 3 + 5;
            }         
        },
        methods: {
            bb(){
                return '4 + 5 '
            }
        }
    })
</script>
</html>